package com.ruoyi.common.core.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

public class FrontTreeObj  implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long parentId;
    @JsonProperty("label")
    private String name;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<FrontTreeObj> children;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<FrontTreeObj> getChildren() {
        return children;
    }

    public void setChildren(List<FrontTreeObj> children) {
        this.children = children;
    }
}
